package com.ruoyi.media.publishModelConfig.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.media.publishModelConfig.domain.MediaPublishModelConfig;
import com.ruoyi.media.publishModelConfig.domain.vo.MediaPublishModelConfigVo;
import com.ruoyi.media.publishModelConfig.domain.bo.MediaPublishModelConfigBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 发布模板配置Service接口
 *
 * @author dqw
 * @date 2023-03-27
 */
public interface IMediaPublishModelConfigService extends IService<MediaPublishModelConfig> {

    /**
     * 查询发布模板配置
     */
    MediaPublishModelConfigVo queryById(Long id);

    /**
     * 查询发布模板配置列表
     */
    TableDataInfo<MediaPublishModelConfigVo> queryPageList(MediaPublishModelConfigBo bo, PageQuery pageQuery);

    /**
     * 查询发布模板配置列表
     */
    List<MediaPublishModelConfigVo> queryList(MediaPublishModelConfigBo bo);

    /**
     * 新增发布模板配置
     */
    Boolean insertByBo(MediaPublishModelConfigBo bo);

    /**
     * 修改发布模板配置
     */
    Boolean updateByBo(MediaPublishModelConfigBo bo);

    /**
     * 校验并批量删除发布模板配置信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
